package org.csu.sei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.sei.common.BaseConstant;
import java.time.LocalDateTime;

@Data
@TableName("banner")
public class Banner implements BaseConstant {
    @TableId(type= IdType.AUTO)
    @TableField(select = false)
    private Long id;
    private String image;
    private String keywords;
    @JsonProperty("order")
    private int bannerOrder;
    @JsonProperty("status")
    private int bannerStatus;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(select = false)
    private LocalDateTime updateTime;
    private Long newsId;
}
